<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover" />
    <title>被管理人</title>
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/weui.min.css')}}">
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/jquery-weui.css')}}">
    <link rel="stylesheet" href="{{asset('/css/system/iconfont.css')}}">
    <link rel="stylesheet" href="/css/icon/iconfont-0130.css">
    @if($skinid == 3)
        <link rel="stylesheet" href="/css/system/common.css?v=2018121301">
        {{--<link rel="stylesheet" href="/css/system/add-manage.css?v=20181221">--}}
    @elseif($skinid == 1)
        <link rel="stylesheet" href="/css/theme-blue/system/common.css">
        {{--<link rel="stylesheet" href="/css/theme-blue/system/add-manage.css?v=20181221">--}}
    @elseif($skinid == 2)
        <link rel="stylesheet" href="/css/theme-pink/system/iconfont-pink.css">
        <link rel="stylesheet" href="/css/theme-pink/system/common.css">
    @endif
    <link rel="stylesheet" href="/css/system/perform-manage.css?v=2019013002">
    <style>
        .front-show-hidden{
            position: fixed;
            bottom: 72px;
            right: 0.2rem;
            width: 130px;
            /* height: 102px;*/
            display: none;
            left: unset;
        }
    </style>
</head>
<body ontouchstart>
<div class="mian-container">
    <div class="perform-manage">
        <div class="weui-cells">
          <div class="weui-cell">
           <div class="weui-cell__hd">
                <img src="{{userlogo($adminid)}}">
            </div>
            <div class="weui-cell__bd">
              <span>{{getUserName($adminid)}}</span>
              <span class="circle-span span-score">{{$rolearray[$role->id]}}</span>
            </div>
          </div>
        </div>
        <h3 class="managed-h3">成员</h3>
        @if($roleid == 9)
            <h3 class="managed-h3" style="text-align: center;">系统管理员的范围为全员，不需设置</h3>
        @else
            <ul class="list-img">
                @foreach($scope as $s)
                    <li>
                        <a href="javascript:void(0);">
                            <img src="{{userlogo($s)}}">
                            <p>{{getUserName($s)}}</p>
                        </a>
                    </li>
                @endforeach
                <li>
                    <a href="{{url('/sysadmin/permission/add-scope?roleid='.$roleid.'&adminid='.$adminid)}}"><img src="/img/add1.png"></a>
                </li>
                <li>
                    <a href="{{url('/sysadmin/permission/del-scope?roleid='.$roleid.'&adminid='.$adminid)}}"><img src="/img/add2.png"></a>
                </li>
            </ul>
        @endif

        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>本组权限</p>
            </div>
            <div class="weui-cell__ft cell-ft">
                {{substr($role->display_name,0,6)}}
            </div>
          </div>
        </div>
    </div>
    <!--阴影遮罩-->
    <div class="list-shadow"></div>
    <!-- 隐藏考核按钮部分-->
    @include('sysadmin.admin-caidan')
</div>
<script src="{{asset('/kaohe/js/jquery-2.1.4.min.js')}}"></script>
<script src="{{asset('/addons/jquery-weui-build/js/fastclick.js')}}"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="{{asset('/addons/jquery-weui-build/js/jquery-weui.min.js')}}"></script>
<script>
    $(document).ready(function () {
        $('.kaohe-item').click(function () {
            $('.show-hidden').toggle();
        });
        $('.admin-item').click(function () {
            $('.front-show-hidden').toggle();
        });
    })
</script>
</body>
</html>